function mapHeight () {
    var h = $(window).height();
    var navHeight = $('#header').height();
    var ftrHeight = $('#footer').height();
    var hSum = navHeight + ftrHeight;
    if ($(window).width() > 767) {
        $('iframe').height(h - hSum);
    } else {
        $('iframe').height(h - navHeight);
    }
}

$(document).ready( function () {
    mapHeight ();
});

$(window).resize( function () {
    mapHeight ();
});


